﻿/********
* 
* 
*  Description:
*  Create By Kain at 4/6/2011 4:19:00 PM
*  
*
*  Revision History:
*  Date                  Who                 What
*  
* 
*/

#region

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

#endregion

namespace Cherry.Agile.ServiceModel.Runtime
{
    [ServiceContract]
    public interface IServiceConsole
    {
        ServerInfomation GetServerState();

        [OperationContract]
        IEnumerable<ServicePackageInfo> GetServicePackages();

        [OperationContract]
        IEnumerable<ServiceInfo> GetService(int packageId);

        [OperationContract(Name="StartServiceInPackage")]
        void StartService(int packageId);

        [OperationContract]
        void StartService(int packageId, string sericeFullName);

        [OperationContract(Name = "StopServiceInPackage")]
        void StopService(int packageId);

        [OperationContract]
        void StopService(int packageId, string sericeFullName);

        [OperationContract(Name = "GetServiceInfoFromPackage")]
        IEnumerable<ServiceInfo> GetServiceInfo(int packageId);

        [OperationContract]
        IEnumerable<ServiceInfo> GetServiceInfo(int packageId, string sericeFullName);
    }
}
